﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using System.Web.Security;
using System.Web.SessionState;
using System.Web.Http;


namespace CanDoo.Oil.WebApi
{
    public class Global : HttpApplication
    {
        void Application_Start(object sender, EventArgs e)
        {

            System.Diagnostics.Trace.Listeners.Clear();
            System.Diagnostics.Trace.AutoFlush = true;
            System.Diagnostics.Trace.Listeners.Add(new System.Diagnostics.TextWriterTraceListener(Server.MapPath(string.Format("~/App_Data/{0}.log", DateTime.Now.ToString("yyyyMMddhhss")))));
            System.Diagnostics.Trace.Listeners.Add(new System.Web.WebPageTraceListener());

        }


    }
}